package com.ling.pl.autoproject.definition.logic.model;

import com.ling.pl.core.commons.annotation.Dict;
import com.ling.pl.core.commons.annotation.ModelProperty;

import javax.persistence.Column;

/**
 * 实体查询集DataQuery=DataQuerySqlJoin+DataQuerySqlParamProperty==>DataQueryCompilerSql DataQueryCompilerColumn
 */
public class DataQuery {
    @Column(name = "ENTITY_ID", length = 36)
    @ModelProperty(comment = "实体id")
    String entityId;

    @Column(name = "NAME", length = 150)
    @ModelProperty(comment = "中文名称")
    String name;

    @Column(name = "CODE", length = 150)
    @ModelProperty(comment = "查询标识")
    String code;

    @Column(name = "IS_PARENT_RELATION")
    @ModelProperty(comment = "是否自定义")
    Boolean isCustomer;

    @Column(name = "IS_PARENT_RELATION")
    @ModelProperty(comment = "是否默认")
    Boolean isDefault;

    @Column(name = "TODO", length = 500)
    @ModelProperty(comment = "todo")
    String todo;

    @Column(name = "SQL_TYPE", length = 150)
    @ModelProperty(comment = "语句类型")
    @Dict(code = "builder.entity.sqlType", des = "当为自定义类型时,编译结果DataQuerySql的语句类型sql,hql")
    String sqlType;
}
